import 'package:flutter/material.dart';
import 'package:meal/constant/fonts.dart';
import 'package:meal/constant/sizes.dart';
import 'package:meal/utils/colors.dart';

class StylesUtils {
  StylesUtils._();

  static TextStyle defaultTextStyle([double fontSize = Sizes.default14, double lineHeight = 1.0]) {
    return TextStyle(
        fontSize: fontSize,
        fontFamily: Fonts.yaHei,
        fontWeight: Fonts.w4,
        height: lineHeight,
        color: ColorsUtils.whiteColor());
  }

  static TextStyle customTextStyle(
      {double fontSize = Sizes.default14,
      FontWeight fontWeight = Fonts.w4,
      String color = ColorsUtils.colorWhite,
      double lineHeight = 1.0}) {
    return TextStyle(
        fontSize: fontSize,
        fontFamily: Fonts.yaHei,
        fontWeight: Fonts.w4,
        color: ColorsUtils.parseColorFromHexString(color),
        height: lineHeight);
  }
}
